<?php 



/**
*控制器父类
*/
class Controller 
{
	public $varArr = array();
	public function display($url=null)
	{

		extract($this->varArr);

		if($url==null){
			include APP_PATH.MODULE."/View/".CONTROLLER.'/'.ACTION.'.html';
		}else{
			include APP_PATH.MODULE."/View/".CONTROLLER.'/'.$url;
		}
		
	}


	public function assign($key,$value)
	{
		$this->varArr[$key]=$value;
	}
}




















 ?>